package com.immunology.service;

import java.sql.SQLException;

import com.immunology.dao.MedicineCardDao;
import com.immunology.database.transformers.MedicineCardTransformer;
import com.immunology.model.MedicineCard;

public class MedicineCardService {
	private MedicineCardDao medicineCardDao = new MedicineCardDao(
			new MedicineCardTransformer());

	/*
	 * public User getUserById(int userId) { return patientDao.getById(userId);
	 * }
	 * 
	 * public boolean changeUserRole(int id, String role){ return
	 * patientDao.changeRole(id, role); }
	 * 
	 * public boolean deleteUserById(int id){ return patientDao.delete(id); }
	 * 
	 * public List<User> getAllUsers(){ return patientDao.getAll(); }
	 */
	/*
	 * public List<Patient> searchPatient(String query) throws SQLException {
	 * return patientDao.search(query); }
	 */

	public MedicineCard searchMedicineCardById(int id) throws SQLException {
		return medicineCardDao.getById(id);
	}

}
